package com.itheima.stock.mapper;

import com.itheima.stock.pojo.StockRtInfo;
import com.itheima.stock.vo.resp.StockKWeekRespVo;
import com.itheima.stock.vo.resp.StockSingleStream;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
* @author 85190
* @description 针对表【stock_rt_info(个股详情信息表)】的数据库操作Mapper
* @createDate 2022-02-12 15:54:06
* @Entity com.itheima.stock.pojo.StockRtInfo
*/
public interface StockRtInfoMapper {

    int deleteByPrimaryKey(Long id);

    int insert(StockRtInfo record);

    int insertSelective(StockRtInfo record);

    StockRtInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StockRtInfo record);

    int updateByPrimaryKey(StockRtInfo record);

    List<Map> getStockIncrease();

    List<Map> getStockAll();

    List<Map> getUpDownLimitCount(int i);

    List<Map> getStockUpDownScope(String lastDateTime);

    List<Map> getStockScreenMinuteSharing(@Param("stockCode") String stockCode, @Param("tDate") String tDate);

    List<Map> getDayKLinData(@Param("code") String code, @Param("tDate") String tDate);

    void insertBatch(List stockRtInfo);

    Map getdetail(String code);

    List<StockKWeekRespVo> getWeekKLineData(@Param("code") String stockCode, @Param("date") String lastDate, @Param("now") String lastDateString4Stock);


    //个股交易流水实时行情数据
    List<StockSingleStream> getSingleStream(@Param("date") String date, @Param("code") String code);
}
